package com.topvision.common.security;

import java.io.Serializable;

/**
 * @author shengwm
 * @version V0.0.1
 * @Title: SignEntity
 * @Package com.topvision.common.security
 * @Description: 签名参数
 * @date 2017/6/23
 */
public class SignatureEntity implements Serializable {
    // hkdappid （是）
    private String appid;
    // 签名 （是）
    private String sign;
    // 随机数 32位数 （是）
    private String nonceStr;
    // 当前时间戳 签名5分钟内有效 （是）
    private Long curtime;

    public SignatureEntity() {
    }

    public SignatureEntity(String appid, String sign, String nonceStr, Long curtime) {
        this.appid = appid;
        this.sign = sign;
        this.nonceStr = nonceStr;
        this.curtime = curtime;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getNonceStr() {
        return nonceStr;
    }

    public void setNonceStr(String nonceStr) {
        this.nonceStr = nonceStr;
    }

    public Long getCurtime() {
        return curtime;
    }

    public void setCurtime(Long curtime) {
        this.curtime = curtime;
    }

    @Override
    public String toString() {
        return "SignatureEntity{" +
                "appid='" + appid + '\'' +
                ", sign='" + sign + '\'' +
                ", nonceStr='" + nonceStr + '\'' +
                ", curtime=" + curtime +
                '}';
    }
}
